package com.oa.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Authority entity. @author MyEclipse Persistence Tools
 */

public class Authority implements java.io.Serializable {

	// Fields

	private Long aid;
	private Integer acode;
	private String aname;
	private String adesc;
	private Set roleAuths = new HashSet(0);
	private Set groupAuths = new HashSet(0);

	// Constructors

	/** default constructor */
	public Authority() {
	}

	/** minimal constructor */
	public Authority(Long aid) {
		this.aid = aid;
	}

	/** full constructor */
	public Authority(Long aid, Integer acode, String aname, String adesc,
			Set roleAuths, Set groupAuths) {
		this.aid = aid;
		this.acode = acode;
		this.aname = aname;
		this.adesc = adesc;
		this.roleAuths = roleAuths;
		this.groupAuths = groupAuths;
	}

	// Property accessors

	public Long getAid() {
		return this.aid;
	}

	public void setAid(Long aid) {
		this.aid = aid;
	}

	public Integer getAcode() {
		return this.acode;
	}

	public void setAcode(Integer acode) {
		this.acode = acode;
	}

	public String getAname() {
		return this.aname;
	}

	public void setAname(String aname) {
		this.aname = aname;
	}

	public String getAdesc() {
		return this.adesc;
	}

	public void setAdesc(String adesc) {
		this.adesc = adesc;
	}

	public Set getRoleAuths() {
		return this.roleAuths;
	}

	public void setRoleAuths(Set roleAuths) {
		this.roleAuths = roleAuths;
	}

	public Set getGroupAuths() {
		return this.groupAuths;
	}

	public void setGroupAuths(Set groupAuths) {
		this.groupAuths = groupAuths;
	}

}